package com.github.base.vo.user;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 账号分页列表显示数据VO
 * @author wendongdong
 * create by 2021-01-29
 */
@Data
public class UserListVO {

    @Schema(description = "用户")
    private Long id;

    @Schema(description = "员工姓名")
    private String name;

    @Schema(description = "角色UserRoleVO集合")
    private List<UserRoleVO> roles;

    @Schema(description = "账户名称")
    private String username;

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "机构名称")
    private String deptName;

    @Schema(description = "启用状态 1-启用 0-禁用")
    private Integer usable;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime modifyTime;
}
